
#region Using directives 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using C4F.DevKit.PictureAcquisition;
#endregion
namespace PictureAcquisitionApplication
{
    public partial class DeviceDetails : Form
    {
        #region constructor
        public DeviceDetails()
        {
            InitializeComponent();
        }
        public DeviceDetails( DeviceInfo deviceInfo)
        {
            InitializeComponent();
            lblFriendlyNameText.Text = deviceInfo.FriendlyName;
            lblIdText.Text = deviceInfo.Id;
            lblTypeText.Text = deviceInfo.Type.ToString();
        }
        #endregion

        private void btnDeviceDetailsOk_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void DeviceDetails_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
                this.Close();
        }
    }
}